package com.yoso.ase;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;

/**
 * @author shizejin
 * @date 2022/6/10
 * @description:
 */

public class Config {
    @Getter
    private static String name;
    @Value("${name}")
    public void setName(String name) {
        Config.name = name;
    }

    public static void main(String[] args) {
        System.out.println("name = " + name);
    }
}
